package com.example.demo.Dao;

import com.example.demo.Entity.Customer;
import com.example.demo.Entity.Product;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CustomerMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Customer record);

    int insertSelective(Customer record);

    Customer selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Customer record);

    int updateByPrimaryKey(Customer record);

    Customer selectByLoginName(String loginName);

    Customer selectByTelphone(String telphone);

    Customer selectByLoginNameAndPasswd(@Param("loginName") String loginName, @Param("password") String password);

    Customer selectByTelphoneAndPasswd(@Param("telphone") String telphone, @Param("password") String password);

    List<Customer> selectAll();

    List<Customer> selectByCustomerName(String customername);

    //String selectPasswordByPrimaryKey(Long id);

}